$(document).ready(function(){
/*
	function loadLog() {
	
			var oldScrollHeight = $("#chatBox").attr("scrollHeight") - 20;
			$.ajax({
				url: "includes/select.php",
				cache: false,
				success: function(html) {
					$("#chatBox").html(html);
					var newscrollHeight = $("#chatBox").attr("scrollHeight") - 20;
					if(newscrollHeight>oldScrollHeight) {
						$("#chatBox").animate({ scrollTop: newscrollHeight}, 'normal');
					}
				}
			});
			
		}
		
*/

 var tabs = $('div.tabs div');
 tabs.hide().filter(':first').show();

  $('ul.nav li a').click(function(){
    tabs.hide();
    tabs.filter(this.hash).show();
	
    $('ul.nav li a').removeClass('active');
    $(this).addClass('active');
  }).filter(':first').click();
});